package com.sc.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 *  实体类。
 *
 * @author JoeZhou
 * @since 2024-09-11
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(value = "ems_role_menu", schema = "study_club")
public class RoleMenu implements Serializable {

    private Integer id;

    private Integer roleId;

    private Integer menuId;

    private Integer status;

    @Column(isLogicDelete = true)
    private Integer isDelete;

    private String info;

    private LocalDateTime created;

    private LocalDateTime updated;

    @Column(version = true)
    private Integer version;

    public RoleMenu(Integer roleId, Integer menuId) {
        this.roleId = roleId;
        this.menuId = menuId;
    }
}
